package com.atme.micromall.member.quartz;

//import com.dataojo.quartz.job.QuartzJobFirst;
//import com.dataojo.quartz.job.QuartzJobTwo;
//import com.dataojo.quartz.util.SchedulerUtils;
import com.atme.micromall.member.controller.QuartzJobBirthdateSms;
import org.springframework.context.ApplicationListener;
import org.springframework.context.event.ContextRefreshedEvent;
import org.springframework.stereotype.Component;

/**
 * @author lilinchao
 * @date 2021/9/2
 * @description 1.0
 **/
@Component
public class StartApplicationListener implements ApplicationListener<ContextRefreshedEvent> {
    @Override
    public void onApplicationEvent(ContextRefreshedEvent contextRefreshedEvent) {
        //System.out.println("-------执行StartApplicationListener--------");
        //SchedulerUtils.scheduleCronJob(QuartzJobBirthdateSms.class, "*/5 * * * * ?");
        //SchedulerUtils.scheduleCronJob(RemindJob.class, "*/10 * * * * ?");
        //SchedulerUtils.scheduleCronJob(QuartzJobThree.class, "*/5 * * * * ?");
    }
}
